<template>
    <div>
        <div style="height: 120px">
            <el-steps :active="6" simple>
                <el-step
                        v-for="(activity, index) in activities"
                        :title="activity.content"
                        :key="index"
                        :icon="activity.icon"></el-step>
            </el-steps>
        </div>
        <div>
            <el-carousel :interval="4000" type="card" height="400px">
                <el-carousel-item v-for="(item,index) in imgs" :key="index">
                    <h3 class="medium"><img :src="item.src"></h3>
                </el-carousel-item>
            </el-carousel>
        </div>
    </div>
</template>

<script>
    export default {
        name: "TeaHome",
        data() {
            return {
                activities: [{
                    content: '导入学生基本信息',
                    icon: 'el-icon-upload2'
                }, {
                    content: '创建考试基本信息',
                    icon: 'el-icon-edit'
                }, {
                    content: '拍照上传学生试卷',
                    icon: 'el-icon-camera'
                }, {
                    content: '核对筛选上传试卷',
                    icon: 'el-icon-upload'
                }, {
                    content: '选择试卷识别答案',
                    icon: 'el-icon-document-checked'
                }, {
                    content: '选择数据导出Excel',
                    icon: 'el-icon-download'
                }],
                imgs: [{
                    src: 'http://blacktry.oss-cn-beijing.aliyuncs.com/20190006/2021/06/29/5a403e5bca8e41948457562e05dbc427.png',
                    content: '上传模板①',
                }, {
                    src: 'http://blacktry.oss-cn-beijing.aliyuncs.com/20190006/2021/06/29/f93b1105e068486082c74674e70422a6.png',
                    content: '上传模板②',
                }, {
                    src: 'http://blacktry.oss-cn-beijing.aliyuncs.com/20190006/2021/06/29/f93b1105e068486082c74674e70422a6.png',
                    content: '上传模板②',
                }, {
                    src: 'http://blacktry.oss-cn-beijing.aliyuncs.com/20190006/2021/06/29/f93b1105e068486082c74674e70422a6.png',
                    content: '上传模板②',
                }, {
                    src: 'http://blacktry.oss-cn-beijing.aliyuncs.com/20190006/2021/06/29/f93b1105e068486082c74674e70422a6.png',
                    content: '上传模板②',
                }]
            };
        },
        methods: {}
    }
</script>

<style scoped>
    .el-carousel__item h3 {
        color: #475669;
        font-size: 14px;
        opacity: 0.75;
        line-height: 200px;
        margin: 0;
    }

    .el-carousel__item:nth-child(2n) {
        background-color: #99a9bf;
    }

    .el-carousel__item:nth-child(2n+1) {
        background-color: #d3dce6;
    }
</style>